{template 'common/header'}
<div class="panel panel-default">
	<div class="panel-body">
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color: red'>*</span>分数</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" class="form-control" placeholder="" name="points" id="points" value="{$record['points']}">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-12">
				<input name="button" type="button" value="提交" class="btn btn-primary col-lg-1" onclick="editrecord()">
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
function editrecord(){
	var url="{php echo $this->createWebUrl('editrecord2')}";
	var id="{$record['id']}";
	var points=$("#points").val();
	
	$.post(url, { id,points },
    		 function(data){
    		     if(data.success==1){
    			     alert(data.msg);
    			     self.location=document.referrer;
    		     }
    	   },"json");
}
</script>
{template 'common/footer'}